package reposibility.chain;

/**
 * @author ZLL
 * @date create in 2018/05/10
 */

/**
 * 抽象的处理者
 */
public abstract class Approver {

    /**
     * 后继的审批者
     */
    protected  Approver successor;
    /**
     * 审批者的名字
     */
    protected  String name;

    public Approver(String name) {
        this.name = name;
    }

    public void setSuccessor(Approver successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(PurchaseRequest purchaseRequest);
}
